<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui">

<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<link href="./css/template.css" rel="stylesheet" type="text/css" />
	<title>SCO - Um sistema diferente</title>
</h:head>

<h:body>
	<f:loadBundle basename="resources.Messages" var="msgs" />
	<div id="banner">
		<ui:insert name="banner">
			<h:form>
				<h:commandButton image="./css/images/sair.jpg" value="Logout"
					action="#{usuarioBean.logout}"
					style="margin-left:96%;margin-top:2%;z-index:99" />
			</h:form>
		</ui:insert>
	</div>
	<div id="header">
		<ui:insert name="header">
			<ui:include id="menuBar" src="menuTemplate.xhtml" />
		</ui:insert>
	</div>
	<div>
		<p:ajaxStatus id="ajaxWait"
			style="position:absolute;margin-top:-17px;margin-left:43%;z-index:9;">
			<f:facet name="start">
				<h:graphicImage value="./css/images/aguarde.gif" />
			</f:facet>

			<f:facet name="complete">
				<h:outputText value="" />
			</f:facet>
		</p:ajaxStatus>
	</div>
	<div id="main">

		<ui:insert name="main">
		</ui:insert>
	</div>
</h:body>
<script>
	function formatar(src, mask) {
		var i = src.value.length;
		var saida = mask.substring(0, 1);
		var texto = mask.substring(i);
		if (texto.substring(0, 1) != saida) {
			src.value += texto.substring(0, 1);
		}
	}
</script>
</html>